add optional redis for backend storage#489
Conversation
480440f to
c665d0d
Compare
mjudeikis
left a comment
There was a problem hiding this comment.
Quick skim, but I would imagine something like this:
session/
provider.go # defines interface only and small `New` method maybe, or even skip taht and do all in cmd.
redis/redis.go # implements ^
memory/memory.go # implements ^
and types are not even needed. Basically - no flags provided - provider is memory, if redis-smth-smth is provided - its redis. If 2 provider flags (not yet supported) is there - validate in cmd and fail.
to the point where every provider could have its own AddFlags(), Validate(), etc methods and be loaded into main cmd flag-set
c665d0d to
1f86a76
Compare
1f86a76 to
771dc90
Compare
mjudeikis
left a comment
There was a problem hiding this comment.
You know that adding this is calling for e2e test? :D could be follow-up but if we add this ,we will need redis in tests
I think we can use test-containers |
5343e9f to
2be882f
Compare
581404f to
d761aa6
Compare
e592bdb to
1218325
Compare
|
@xrstf for your approval :) |
8f15a1b to
f0b9e00
Compare
7f030a5 to
833e24c
Compare
|
/approve |
|
@olamilekan000 let's resolve the conflict and merge it 🎉 |
833e24c to
b7440ec
Compare
Summary
What Type of PR Is This?
/kind feature
Related Issue(s)
Fixes 424
Fixes 488
Release Notes